package com.jeff.tianti.cms.entity;

import com.jeff.tianti.common.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "user")//门户用户表
public class GateUser extends BaseEntity {
    private static final long serialVersionUID = 3772422497982165762L;
    public static final String USER_TYPE_ZERO = "0";//会员类型:0->普通会员，1->理事会员
    public static final String USER_TYPE_ONE = "1";//会员类型:0->普通会员，1->理事会员
    @Column(name = "user_name")
    private String userName;//用户名
    @Column(name = "password")
    private String password;//密码
    @Column(name = "nick_name")
    private String nickName;//昵称
    @Column(name = "email")
    private String email;//电子邮箱
    @Column(name = "mobile")
    private String mobile;//手机
    @Column(name = "reg_ip")
    private String regIp;//注册ip
    @Column(name = "icon")
    private String icon;//用户头像
    @Column(name = "icon_file")
    private String iconFile;//用户头像file地址
    @Column(name = "user_type")
    private String userType;//会员类型:0->普通会员，1->理事会员
    @Column(name = "company")
    private String company;//公司名称

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @Transient
    private String code;//验证码

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRegIp() {
        return regIp;
    }

    public void setRegIp(String regIp) {
        this.regIp = regIp;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIconFile() {
        return iconFile;
    }

    public void setIconFile(String iconFile) {
        this.iconFile = iconFile;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
